
public class Turn {
	private Player player;
	//S refers to settlement-build, C refers to city-build, R refers to road beginning, P refers to road end,
	//T refers to robber target, E refers to resource cards, D to SCard
	private char targetObject;
	//Dice must be rolled at the start of every turn.
	private boolean diceRolled;
	private boolean freeRoad;
	
	public Turn (Player p){
		this.player = p;
		this.targetObject = 'N';
		System.out.println("roll the dice");		
	}

	public Player getPlayer() {
		return player;
	}
	
	//prompt methods change the target for the applet's clickable interface
	public void promptBuildSettlement(){
		this.targetObject = 'S';
	}
	
	public void promptBuildCity(){
		this.targetObject = 'C';
	}
	
	public void promptBuildRoad(){
//		System.out.println("Road");
		this.targetObject = 'R';
	}
	
	public void promptBuildSCard(){
		player.drawSCard();
	}
	
	public void promptMoveThief(){
		this.targetObject = 'T';
	}

	public void setPlayer(Player player) {
		this.player = player;
	}

	public char getTargetObject() {
		return targetObject;
	}

	public void setTargetObject(char targetObject) {
		this.targetObject = targetObject;
	}

	public void setDiceRolled(boolean diceRolled) {
		this.diceRolled = diceRolled;
	}

	public boolean isDiceRolled() {
		return diceRolled;
	}

	public void promptBuildFirstRoad() {
		// TODO Auto-generated method stub
//		System.out.println("Free road");
		this.targetObject = 'F';
		toggleFreeRoad(true);
	}

	public void toggleFreeRoad(boolean freeRoad) {
		this.freeRoad = freeRoad;
	}

	public boolean isFreeRoad() {
		return freeRoad;
	}
	
}
